package org.demo.controller;

import javax.servlet.http.HttpServletRequest;

import org.demo.po.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class TestController {
	
	@RequestMapping(value="/hello")
	@ResponseBody
	public String hello(User user){
		System.out.println("===============");
		//System.out.println("name:"+request.getParameter("name"));
		System.out.println("name:"+user.getName()+" address:"+user.getAddress());
		return "hello";
	}
}
